package com.xcity.game.activity.newplayer;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Binding;
import naga.x.game.template.annotation.Excel;

/**
 * 每日热卖
 * @author shipeng.zhu
 *
 */
@Excel(value = "newPlayer.xlsx", sheetName = "每日热卖")
public class NewPlayerShopTemplate extends Template {
	/** 物品ID */
	protected int itemId;
	
	/** 物品数量 */
	protected int itemCount;

	/** 价格(钻石) */
	protected int price;

	/** 限制数量 */
	protected int count;
	
	/** 原价 */
	protected int original;
	
	/** 折扣 */
	protected int discount;

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}
	
	public int getOriginal() {
		return original;
	}

	public void setOriginal(int original) {
		this.original = original;
	}

	public int getDiscount() {
		return discount;
	}

	public void setDiscount(int discount) {
		this.discount = discount;
	}

	public int getItemCount() {
		return itemCount;
	}

	public void setItemCount(int itemCount) {
		this.itemCount = itemCount;
	}

	@Override
	public void validate() throws TemplateException {
		if(this.itemCount == 0){
			this.itemCount = 1;
		}
	}
}
